package com.hp.modules.sys.dto;

import com.hp.common.validator.Groups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>接收请求的参数</p>
 * <p>字典项</p>
 * @Sine 2021-07-22 10:45:30
 */
@ApiModel(description = "字典项")
public class SysDictItemParam {

    @ApiModelProperty(value = "主键-更新时必填")
    @NotNull(message = "主键不能为空",groups = {Groups.Update.class})
    private Long id;
    @ApiModelProperty(value = "字典id",required = true)
    @NotNull(message = "字典id不能为空",groups = {Groups.Save.class,Groups.Update.class})
    private Long dictId;
    @ApiModelProperty(value = "名称",required = true)
    @NotBlank(message = "名称不能为空",groups = {Groups.Save.class,Groups.Update.class})
    private String name;
    @ApiModelProperty(value = "值",required = true)
    private Integer dictItemValue;
    @ApiModelProperty(value = "排序",required = false)
    private Double sort;
    @ApiModelProperty(value = "",required = false)
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDictId() {
        return dictId;
    }

    public void setDictId(Long dictId) {
        this.dictId = dictId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDictItemValue() {
        return dictItemValue;
    }

    public void setDictItemValue(Integer dictItemValue) {
        this.dictItemValue = dictItemValue;
    }

    public Double getSort() {
        return sort;
    }

    public void setSort(Double sort) {
        this.sort = sort;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
